using System;
using System.Runtime.Serialization;
namespace eTMS.DAO{
	/********************************BEGIN KhachHangEntity****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: KhachHangEntity</para>
	/// <para>Description: ClassKhachHangEntity store data of table KhachHang</para>
	///</summary>

	[DataContract]
	public partial class KhachHangEntity{


		private bool _InternalChangedIsNullKhachHang_ID=true;
		private bool _IsNullKhachHang_ID=true;
		private bool _InternalChangedIsNullMaKhachHang=true;
		private bool _IsNullMaKhachHang=true;
		private bool _InternalChangedIsNullTenKhachHang=true;
		private bool _IsNullTenKhachHang=true;
		private bool _InternalChangedIsNullNgaySinh=true;
		private bool _IsNullNgaySinh=true;
		private bool _InternalChangedIsNullGioiTinh=true;
		private bool _IsNullGioiTinh=true;
		private bool _InternalChangedIsNullDiaChi=true;
		private bool _IsNullDiaChi=true;
		private bool _InternalChangedIsNullQuanHuyen_ID=true;
		private bool _IsNullQuanHuyen_ID=true;
		private bool _InternalChangedIsNullTinhThanh_ID=true;
		private bool _IsNullTinhThanh_ID=true;
		private bool _InternalChangedIsNullDiDong=true;
		private bool _IsNullDiDong=true;
		private bool _InternalChangedIsNullCoDinh=true;
		private bool _IsNullCoDinh=true;
		private bool _InternalChangedIsNullPhuHuynh=true;
		private bool _IsNullPhuHuynh=true;
		private bool _InternalChangedIsNullThanhPhan_ID=true;
		private bool _IsNullThanhPhan_ID=true;
		private bool _InternalChangedIsNullTruongHoc=true;
		private bool _IsNullTruongHoc=true;
		private bool _InternalChangedIsNullCaHoc_ID=true;
		private bool _IsNullCaHoc_ID=true;
		private bool _InternalChangedIsNullGioHoc=true;
		private bool _IsNullGioHoc=true;
		private bool _InternalChangedIsNullEmail=true;
		private bool _IsNullEmail=true;
		private bool _InternalChangedIsNullDanhGia=true;
		private bool _IsNullDanhGia=true;
		private bool _InternalChangedIsNullGhiChu=true;
		private bool _IsNullGhiChu=true;
		private bool _InternalChangedIsNullSinhVien_ID=true;
		private bool _IsNullSinhVien_ID=true;
		private bool _InternalChangedIsNullNganhHoc_ID=true;
		private bool _IsNullNganhHoc_ID=true;
		private bool _InternalChangedIsNullTrangThai_ID=true;
		private bool _IsNullTrangThai_ID=true;
		private bool _InternalChangedIsNullNguonTin_ID=true;
		private bool _IsNullNguonTin_ID=true;
		private bool _InternalChangedIsNullNgayNhap=true;
		private bool _IsNullNgayNhap=true;
		private bool _InternalChangedIsNullNgayCapNhat=true;
		private bool _IsNullNgayCapNhat=true;
		private bool _InternalChangedIsNullUser_ID=true;
		private bool _IsNullUser_ID=true;
		private bool _InternalChangedIsNullKetThuc=true;
		private bool _IsNullKetThuc=true;
		private bool _InternalChangedIsNullNgayKetThuc=true;
		private bool _IsNullNgayKetThuc=true;
		private int _KhachHang_ID;
		private string _MaKhachHang;
		private string _TenKhachHang;
		private DateTime _NgaySinh;
		private bool _GioiTinh;
		private string _DiaChi;
		private int _QuanHuyen_ID;
		private int _TinhThanh_ID;
		private string _DiDong;
		private string _CoDinh;
		private string _PhuHuynh;
		private int _ThanhPhan_ID;
		private string _TruongHoc;
		private int _CaHoc_ID;
		private string _GioHoc;
		private string _Email;
		private string _DanhGia;
		private string _GhiChu;
		private int _SinhVien_ID;
		private int _NganhHoc_ID;
		private int _TrangThai_ID;
		private int _NguonTin_ID;
		private DateTime _NgayNhap;
		private DateTime _NgayCapNhat;
		private int _User_ID;
		private bool _KetThuc;
		private DateTime _NgayKetThuc;
		[DataMember]
		public bool IsNullKhachHang_ID{
			get{return _IsNullKhachHang_ID;}
			set{if(!_InternalChangedIsNullKhachHang_ID)_IsNullKhachHang_ID=value;}
		}
		[DataMember]
		public bool IsNullMaKhachHang{
			get{return _IsNullMaKhachHang;}
			set{if(!_InternalChangedIsNullMaKhachHang)_IsNullMaKhachHang=value;}
		}
		[DataMember]
		public bool IsNullTenKhachHang{
			get{return _IsNullTenKhachHang;}
			set{if(!_InternalChangedIsNullTenKhachHang)_IsNullTenKhachHang=value;}
		}
		[DataMember]
		public bool IsNullNgaySinh{
			get{return _IsNullNgaySinh;}
			set{if(!_InternalChangedIsNullNgaySinh)_IsNullNgaySinh=value;}
		}
		[DataMember]
		public bool IsNullGioiTinh{
			get{return _IsNullGioiTinh;}
			set{if(!_InternalChangedIsNullGioiTinh)_IsNullGioiTinh=value;}
		}
		[DataMember]
		public bool IsNullDiaChi{
			get{return _IsNullDiaChi;}
			set{if(!_InternalChangedIsNullDiaChi)_IsNullDiaChi=value;}
		}
		[DataMember]
		public bool IsNullQuanHuyen_ID{
			get{return _IsNullQuanHuyen_ID;}
			set{if(!_InternalChangedIsNullQuanHuyen_ID)_IsNullQuanHuyen_ID=value;}
		}
		[DataMember]
		public bool IsNullTinhThanh_ID{
			get{return _IsNullTinhThanh_ID;}
			set{if(!_InternalChangedIsNullTinhThanh_ID)_IsNullTinhThanh_ID=value;}
		}
		[DataMember]
		public bool IsNullDiDong{
			get{return _IsNullDiDong;}
			set{if(!_InternalChangedIsNullDiDong)_IsNullDiDong=value;}
		}
		[DataMember]
		public bool IsNullCoDinh{
			get{return _IsNullCoDinh;}
			set{if(!_InternalChangedIsNullCoDinh)_IsNullCoDinh=value;}
		}
		[DataMember]
		public bool IsNullPhuHuynh{
			get{return _IsNullPhuHuynh;}
			set{if(!_InternalChangedIsNullPhuHuynh)_IsNullPhuHuynh=value;}
		}
		[DataMember]
		public bool IsNullThanhPhan_ID{
			get{return _IsNullThanhPhan_ID;}
			set{if(!_InternalChangedIsNullThanhPhan_ID)_IsNullThanhPhan_ID=value;}
		}
		[DataMember]
		public bool IsNullTruongHoc{
			get{return _IsNullTruongHoc;}
			set{if(!_InternalChangedIsNullTruongHoc)_IsNullTruongHoc=value;}
		}
		[DataMember]
		public bool IsNullCaHoc_ID{
			get{return _IsNullCaHoc_ID;}
			set{if(!_InternalChangedIsNullCaHoc_ID)_IsNullCaHoc_ID=value;}
		}
		[DataMember]
		public bool IsNullGioHoc{
			get{return _IsNullGioHoc;}
			set{if(!_InternalChangedIsNullGioHoc)_IsNullGioHoc=value;}
		}
		[DataMember]
		public bool IsNullEmail{
			get{return _IsNullEmail;}
			set{if(!_InternalChangedIsNullEmail)_IsNullEmail=value;}
		}
		[DataMember]
		public bool IsNullDanhGia{
			get{return _IsNullDanhGia;}
			set{if(!_InternalChangedIsNullDanhGia)_IsNullDanhGia=value;}
		}
		[DataMember]
		public bool IsNullGhiChu{
			get{return _IsNullGhiChu;}
			set{if(!_InternalChangedIsNullGhiChu)_IsNullGhiChu=value;}
		}
		[DataMember]
		public bool IsNullSinhVien_ID{
			get{return _IsNullSinhVien_ID;}
			set{if(!_InternalChangedIsNullSinhVien_ID)_IsNullSinhVien_ID=value;}
		}
		[DataMember]
		public bool IsNullNganhHoc_ID{
			get{return _IsNullNganhHoc_ID;}
			set{if(!_InternalChangedIsNullNganhHoc_ID)_IsNullNganhHoc_ID=value;}
		}
		[DataMember]
		public bool IsNullTrangThai_ID{
			get{return _IsNullTrangThai_ID;}
			set{if(!_InternalChangedIsNullTrangThai_ID)_IsNullTrangThai_ID=value;}
		}
		[DataMember]
		public bool IsNullNguonTin_ID{
			get{return _IsNullNguonTin_ID;}
			set{if(!_InternalChangedIsNullNguonTin_ID)_IsNullNguonTin_ID=value;}
		}
		[DataMember]
		public bool IsNullNgayNhap{
			get{return _IsNullNgayNhap;}
			set{if(!_InternalChangedIsNullNgayNhap)_IsNullNgayNhap=value;}
		}
		[DataMember]
		public bool IsNullNgayCapNhat{
			get{return _IsNullNgayCapNhat;}
			set{if(!_InternalChangedIsNullNgayCapNhat)_IsNullNgayCapNhat=value;}
		}
		[DataMember]
		public bool IsNullUser_ID{
			get{return _IsNullUser_ID;}
			set{if(!_InternalChangedIsNullUser_ID)_IsNullUser_ID=value;}
		}
		[DataMember]
		public bool IsNullKetThuc{
			get{return _IsNullKetThuc;}
			set{if(!_InternalChangedIsNullKetThuc)_IsNullKetThuc=value;}
		}
		[DataMember]
		public bool IsNullNgayKetThuc{
			get{return _IsNullNgayKetThuc;}
			set{if(!_InternalChangedIsNullNgayKetThuc)_IsNullNgayKetThuc=value;}
		}
		[DataMember]
		public int KhachHang_ID{
			get{return _KhachHang_ID;}
			set{
				_KhachHang_ID=value;
				if(_KhachHang_ID!=null){
					_IsNullKhachHang_ID=false;
					_InternalChangedIsNullKhachHang_ID=true;
				}
			}
		}
		[DataMember]
		public string MaKhachHang{
			get{return _MaKhachHang;}
			set{
				_MaKhachHang=value;
				if(_MaKhachHang!=null){
					_IsNullMaKhachHang=false;
					_InternalChangedIsNullMaKhachHang=true;
				}
			}
		}
		[DataMember]
		public string TenKhachHang{
			get{return _TenKhachHang;}
			set{
				_TenKhachHang=value;
				if(_TenKhachHang!=null){
					_IsNullTenKhachHang=false;
					_InternalChangedIsNullTenKhachHang=true;
				}
			}
		}
		[DataMember]
		public DateTime NgaySinh{
			get{return _NgaySinh;}
			set{
				_NgaySinh=value;
				if(_NgaySinh!=null){
					_IsNullNgaySinh=false;
					_InternalChangedIsNullNgaySinh=true;
				}
			}
		}
		[DataMember]
		public bool GioiTinh{
			get{return _GioiTinh;}
			set{
				_GioiTinh=value;
				if(_GioiTinh!=null){
					_IsNullGioiTinh=false;
					_InternalChangedIsNullGioiTinh=true;
				}
			}
		}
		[DataMember]
		public string DiaChi{
			get{return _DiaChi;}
			set{
				_DiaChi=value;
				if(_DiaChi!=null){
					_IsNullDiaChi=false;
					_InternalChangedIsNullDiaChi=true;
				}
			}
		}
		[DataMember]
		public int QuanHuyen_ID{
			get{return _QuanHuyen_ID;}
			set{
				_QuanHuyen_ID=value;
				if(_QuanHuyen_ID!=null){
					_IsNullQuanHuyen_ID=false;
					_InternalChangedIsNullQuanHuyen_ID=true;
				}
			}
		}
		[DataMember]
		public int TinhThanh_ID{
			get{return _TinhThanh_ID;}
			set{
				_TinhThanh_ID=value;
				if(_TinhThanh_ID!=null){
					_IsNullTinhThanh_ID=false;
					_InternalChangedIsNullTinhThanh_ID=true;
				}
			}
		}
		[DataMember]
		public string DiDong{
			get{return _DiDong;}
			set{
				_DiDong=value;
				if(_DiDong!=null){
					_IsNullDiDong=false;
					_InternalChangedIsNullDiDong=true;
				}
			}
		}
		[DataMember]
		public string CoDinh{
			get{return _CoDinh;}
			set{
				_CoDinh=value;
				if(_CoDinh!=null){
					_IsNullCoDinh=false;
					_InternalChangedIsNullCoDinh=true;
				}
			}
		}
		[DataMember]
		public string PhuHuynh{
			get{return _PhuHuynh;}
			set{
				_PhuHuynh=value;
				if(_PhuHuynh!=null){
					_IsNullPhuHuynh=false;
					_InternalChangedIsNullPhuHuynh=true;
				}
			}
		}
		[DataMember]
		public int ThanhPhan_ID{
			get{return _ThanhPhan_ID;}
			set{
				_ThanhPhan_ID=value;
				if(_ThanhPhan_ID!=null){
					_IsNullThanhPhan_ID=false;
					_InternalChangedIsNullThanhPhan_ID=true;
				}
			}
		}
		[DataMember]
		public string TruongHoc{
			get{return _TruongHoc;}
			set{
				_TruongHoc=value;
				if(_TruongHoc!=null){
					_IsNullTruongHoc=false;
					_InternalChangedIsNullTruongHoc=true;
				}
			}
		}
		[DataMember]
		public int CaHoc_ID{
			get{return _CaHoc_ID;}
			set{
				_CaHoc_ID=value;
				if(_CaHoc_ID!=null){
					_IsNullCaHoc_ID=false;
					_InternalChangedIsNullCaHoc_ID=true;
				}
			}
		}
		[DataMember]
		public string GioHoc{
			get{return _GioHoc;}
			set{
				_GioHoc=value;
				if(_GioHoc!=null){
					_IsNullGioHoc=false;
					_InternalChangedIsNullGioHoc=true;
				}
			}
		}
		[DataMember]
		public string Email{
			get{return _Email;}
			set{
				_Email=value;
				if(_Email!=null){
					_IsNullEmail=false;
					_InternalChangedIsNullEmail=true;
				}
			}
		}
		[DataMember]
		public string DanhGia{
			get{return _DanhGia;}
			set{
				_DanhGia=value;
				if(_DanhGia!=null){
					_IsNullDanhGia=false;
					_InternalChangedIsNullDanhGia=true;
				}
			}
		}
		[DataMember]
		public string GhiChu{
			get{return _GhiChu;}
			set{
				_GhiChu=value;
				if(_GhiChu!=null){
					_IsNullGhiChu=false;
					_InternalChangedIsNullGhiChu=true;
				}
			}
		}
		[DataMember]
		public int SinhVien_ID{
			get{return _SinhVien_ID;}
			set{
				_SinhVien_ID=value;
				if(_SinhVien_ID!=null){
					_IsNullSinhVien_ID=false;
					_InternalChangedIsNullSinhVien_ID=true;
				}
			}
		}
		[DataMember]
		public int NganhHoc_ID{
			get{return _NganhHoc_ID;}
			set{
				_NganhHoc_ID=value;
				if(_NganhHoc_ID!=null){
					_IsNullNganhHoc_ID=false;
					_InternalChangedIsNullNganhHoc_ID=true;
				}
			}
		}
		[DataMember]
		public int TrangThai_ID{
			get{return _TrangThai_ID;}
			set{
				_TrangThai_ID=value;
				if(_TrangThai_ID!=null){
					_IsNullTrangThai_ID=false;
					_InternalChangedIsNullTrangThai_ID=true;
				}
			}
		}
		[DataMember]
		public int NguonTin_ID{
			get{return _NguonTin_ID;}
			set{
				_NguonTin_ID=value;
				if(_NguonTin_ID!=null){
					_IsNullNguonTin_ID=false;
					_InternalChangedIsNullNguonTin_ID=true;
				}
			}
		}
		[DataMember]
		public DateTime NgayNhap{
			get{return _NgayNhap;}
			set{
				_NgayNhap=value;
				if(_NgayNhap!=null){
					_IsNullNgayNhap=false;
					_InternalChangedIsNullNgayNhap=true;
				}
			}
		}
		[DataMember]
		public DateTime NgayCapNhat{
			get{return _NgayCapNhat;}
			set{
				_NgayCapNhat=value;
				if(_NgayCapNhat!=null){
					_IsNullNgayCapNhat=false;
					_InternalChangedIsNullNgayCapNhat=true;
				}
			}
		}
		[DataMember]
		public int User_ID{
			get{return _User_ID;}
			set{
				_User_ID=value;
				if(_User_ID!=null){
					_IsNullUser_ID=false;
					_InternalChangedIsNullUser_ID=true;
				}
			}
		}
		[DataMember]
		public bool KetThuc{
			get{return _KetThuc;}
			set{
				_KetThuc=value;
				if(_KetThuc!=null){
					_IsNullKetThuc=false;
					_InternalChangedIsNullKetThuc=true;
				}
			}
		}
		[DataMember]
		public DateTime NgayKetThuc{
			get{return _NgayKetThuc;}
			set{
				_NgayKetThuc=value;
				if(_NgayKetThuc!=null){
					_IsNullNgayKetThuc=false;
					_InternalChangedIsNullNgayKetThuc=true;
				}
			}
		}
	}
	/*****************************************************************************************************/
	/**********************************END KhachHangEntityBase*****************************************/
	/*****************************************************************************************************/
}

